import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/application/education/teacher_power/lecturer_list_page_entity.dart';
import 'package:enterprise_v6_app/app/data/common/choice_bean.dart';


LecturerListPageEntity $LecturerListPageEntityFromJson(Map<String, dynamic> json) {
  final LecturerListPageEntity lecturerListPageEntity = LecturerListPageEntity();
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    lecturerListPageEntity.id = id;
  }
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    lecturerListPageEntity.companyCode = companyCode;
  }
  final String? lecturerName = jsonConvert.convert<String>(json['lecturerName']);
  if (lecturerName != null) {
    lecturerListPageEntity.lecturerName = lecturerName;
  }
  final String? lecturerSexDicId = jsonConvert.convert<String>(json['lecturerSexDicId']);
  if (lecturerSexDicId != null) {
    lecturerListPageEntity.lecturerSexDicId = lecturerSexDicId;
  }
  final String? lecturerSex = jsonConvert.convert<String>(json['lecturerSex']);
  if (lecturerSex != null) {
    lecturerListPageEntity.lecturerSex = lecturerSex;
  }
  final String? lecturerTypeDicId = jsonConvert.convert<String>(json['lecturerTypeDicId']);
  if (lecturerTypeDicId != null) {
    lecturerListPageEntity.lecturerTypeDicId = lecturerTypeDicId;
  }
  final String? lecturerType = jsonConvert.convert<String>(json['lecturerType']);
  if (lecturerType != null) {
    lecturerListPageEntity.lecturerType = lecturerType;
  }
  final String? lecturerProfiles = jsonConvert.convert<String>(json['lecturerProfiles']);
  if (lecturerProfiles != null) {
    lecturerListPageEntity.lecturerProfiles = lecturerProfiles;
  }
  final String? lecturerHead = jsonConvert.convert<String>(json['lecturerHead']);
  if (lecturerHead != null) {
    lecturerListPageEntity.lecturerHead = lecturerHead;
  }
  final int? status = jsonConvert.convert<int>(json['status']);
  if (status != null) {
    lecturerListPageEntity.status = status;
  }
  final int? likeNum = jsonConvert.convert<int>(json['likeNum']);
  if (likeNum != null) {
    lecturerListPageEntity.likeNum = likeNum;
  }
  final bool? isLike = jsonConvert.convert<bool>(json['isLike']);
  if (isLike != null) {
    lecturerListPageEntity.isLike = isLike;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    lecturerListPageEntity.createBy = createBy;
  }
  final String? createById = jsonConvert.convert<String>(json['createById']);
  if (createById != null) {
    lecturerListPageEntity.createById = createById;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    lecturerListPageEntity.createDate = createDate;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    lecturerListPageEntity.updateBy = updateBy;
  }
  final String? updateById = jsonConvert.convert<String>(json['updateById']);
  if (updateById != null) {
    lecturerListPageEntity.updateById = updateById;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    lecturerListPageEntity.updateDate = updateDate;
  }
  final String? deleted = jsonConvert.convert<String>(json['deleted']);
  if (deleted != null) {
    lecturerListPageEntity.deleted = deleted;
  }
  final bool? isSelected = jsonConvert.convert<bool>(json['isSelected']);
  if (isSelected != null) {
    lecturerListPageEntity.isSelected = isSelected;
  }
  return lecturerListPageEntity;
}

Map<String, dynamic> $LecturerListPageEntityToJson(LecturerListPageEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['companyCode'] = entity.companyCode;
  data['lecturerName'] = entity.lecturerName;
  data['lecturerSexDicId'] = entity.lecturerSexDicId;
  data['lecturerSex'] = entity.lecturerSex;
  data['lecturerTypeDicId'] = entity.lecturerTypeDicId;
  data['lecturerType'] = entity.lecturerType;
  data['lecturerProfiles'] = entity.lecturerProfiles;
  data['lecturerHead'] = entity.lecturerHead;
  data['status'] = entity.status;
  data['likeNum'] = entity.likeNum;
  data['isLike'] = entity.isLike;
  data['createBy'] = entity.createBy;
  data['createById'] = entity.createById;
  data['createDate'] = entity.createDate;
  data['updateBy'] = entity.updateBy;
  data['updateById'] = entity.updateById;
  data['updateDate'] = entity.updateDate;
  data['deleted'] = entity.deleted;
  data['isSelected'] = entity.isSelected;
  return data;
}

extension LecturerListPageEntityExtension on LecturerListPageEntity {
  LecturerListPageEntity copyWith({
    String? id,
    String? companyCode,
    String? lecturerName,
    String? lecturerSexDicId,
    String? lecturerSex,
    String? lecturerTypeDicId,
    String? lecturerType,
    String? lecturerProfiles,
    String? lecturerHead,
    int? status,
    int? likeNum,
    bool? isLike,
    String? createBy,
    String? createById,
    String? createDate,
    String? updateBy,
    String? updateById,
    String? updateDate,
    String? deleted,
    bool? isSelected,
  }) {
    return LecturerListPageEntity()
      ..id = id ?? this.id
      ..companyCode = companyCode ?? this.companyCode
      ..lecturerName = lecturerName ?? this.lecturerName
      ..lecturerSexDicId = lecturerSexDicId ?? this.lecturerSexDicId
      ..lecturerSex = lecturerSex ?? this.lecturerSex
      ..lecturerTypeDicId = lecturerTypeDicId ?? this.lecturerTypeDicId
      ..lecturerType = lecturerType ?? this.lecturerType
      ..lecturerProfiles = lecturerProfiles ?? this.lecturerProfiles
      ..lecturerHead = lecturerHead ?? this.lecturerHead
      ..status = status ?? this.status
      ..likeNum = likeNum ?? this.likeNum
      ..isLike = isLike ?? this.isLike
      ..createBy = createBy ?? this.createBy
      ..createById = createById ?? this.createById
      ..createDate = createDate ?? this.createDate
      ..updateBy = updateBy ?? this.updateBy
      ..updateById = updateById ?? this.updateById
      ..updateDate = updateDate ?? this.updateDate
      ..deleted = deleted ?? this.deleted
      ..isSelected = isSelected ?? this.isSelected;
  }
}
